
module.exports = app => {
    const { STRING, INTEGER, JSON } = app.Sequelize;
    const TopicLessonVideoLog = app.model.define('topic-lesson-video-logs', {

        id: {
            type: INTEGER,
            primaryKey: true,
            allowNull: false,
            autoIncrement: true,
        },


        videoId: {
            type: INTEGER,
            allowNull: false,
        },

        userId: {
            type: STRING,
            allowNull: false,

        },

        datas: {
            type: JSON
        }

    }, {
        timestamps: true,
        underscored: false,
    });

    return TopicLessonVideoLog;
};

